package com.qf.service.userfamilyservice.impl;

import com.qf.entity.userfamilyinfo.UserVO;
import com.qf.mapper.userfamilymapper.UserFamilyInfoMapper;
import com.qf.service.userfamilyservice.UserFamilyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- 今日无事,勾栏听曲 ---
 *
 * @author JinZhiHao
 * @date 2024/12/4
 * @desc
 */

@Service
public class UserFamilyInfoServiceImpl implements UserFamilyInfoService {

    @Autowired
    private UserFamilyInfoMapper userFamilyInfoMapper;


    @Override
    public List<UserVO> findUserFamilyInfo(String username) {
        return userFamilyInfoMapper.findUserFamilyInfo(username);
    }

    @Override
    public boolean editUserFamilyInfo(UserVO userVO) {
        System.out.println("userVO = " + userVO);
        return userFamilyInfoMapper.editUserFamilyInfo(userVO);
    }
}
